<?php
// 连接数据库
$link=mysql_connect('localhost:60503','dawanapp','dawanapp');
//sql语句
$sql="INSERT INTO contact_us (tel,msg) VALUES ('$_POST[tel]','$_POST[msg]')";
//如果连接成功
if($link)
{
    mysql_select_db('dawanapp',$link);
    mysql_query("SET NAMES UTF8");
}else{
    die('Could not connect: ' . mysql_error());
};
if(!mysql_query($sql,$link)){
    die('Could not connect: ' . mysql_error());
}
echo 'success!';
mysql_close($link);
?>